package backend.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import backend.manager.UserManager;
import backend.model.User;

@Service
public class LoginServiceImpl implements LoginService {

	@Autowired
	UserManager userManager;

	public User authenticate(String username, String password) {
		return userManager.findUserByUsernameAndPassword(username, password);
	}
}
